module ApplicationHelper
  # Set title for current page
  def title(page_title)
    content_for :title, page_title.to_s
  end

  # Set title for current page
  def description(page_description)
    content_for :description, page_description.to_s
  end

  # Set css scope for current page
  def css_scope(scope_name)
    content_for :css_scope, scope_name.to_s
  end

  def navbar_class(path)
    current_page?(path) ? 'active' : nil
  end
end
